package com.cabal.common.errcode;


public enum  UserErrCodeEnum{
    AUTH_PARAM("1101001", "User parameter error"),
    WEB_VALIDATE_PARAM_USERNAME("1101001", "User name cannot be empty"),
    TOKEN_CONTEXT_FAIL("1101001", "Token context failure"),
    COUNT_FUNCTION_RELEVANCY_SUBSYSTEM("1111001", "The subsystem has been associated with permissions and is not allowed to delete"),
    COUNT_FUNCTION_RELEVANCY_FUNCTIONGROUP("1111002", "The permission group has been associated with permissions and is not allowed to delete"),
    COUNT_FUNCTION_RELEVANCY_ROLE("1111003", "The permission has been associated with the role not allowed to delete"),
    UMS_ORGAN_DELETE_TENANTORGAN("1110001", "There are sub-organizational structures under the organizational structure, please delete the sub-organization structure first."),
    UMS_ORGAN_DELETE_TENANTORGAN_TE("1110002", "There are employees under this organizational structure, please delete the employee first"),
    UMS_ORGAN_DELETE_TENANTORGAN_SHOP("1110003", "There are also stores under this organization structure, please delete the store first"),
    UMS_ORGAN_DELETE_TENANTORGAN_WAREHOUSE("1110004", "There is a warehouse under the organizational structure, please delete the warehouse first"),
    UMS_ORGAN_IS_TOP_TENANTORGAN("1110005", "The merchant does not have a top organization, please create first"),
    UMS_BISFUNCTION_IS_EXISTS_URL("1110006", "There can be no duplicate URLs under this frontend system"),
    UMS_REDIS_ERROR("1110007", "Redis request failed"),
    WEB_VALIDATE_PARAM_USERNAME_NOTNULL("1111005", "User name can not be empty"),
    WEB_VALIDATE_PARAM_PASSWORD_NOTNULL("1111006", "password can not be empty"),
	WEB_VALIDATE_PARAM_USER_NOTNULL("1111007", "User information cannot be empty"),
    WEB_VALIDATE_PARAM_id("1111008", "id can not be empty"),
    WEB_VALIDATE_PARAM_ROLE("1111009", "The role has been associated with users who are not allowed to delete"),
    WEB_VALIDATE_PARAM_USER_ID("1111010", "pspUserInfo id can not be empty"),
    GVT_UMS_SUBSYSTEM_NAME_COUNT("1100011", "The name of the module already exists"),
    GVT_UMS_APP_NAME_COUNT("1100012", "The name of the product already exists"),
    GVT_UMS_ORGAN_PARENTID_NULL("1100013", "Not root organization, parent organization id cannot be empty"),
    GVT_UMS_GROUP_NAME_COUNT("1100014", "The name of the permission group already exists"),
    GVT_UMS_ROLE_NAME_COUNT("1100015", "The same role name already exists in the product"),
    GVT_UMS_CODE_COUNT("1100016", "Encoding already exists"),
    GVT_UMS_NAME_COUNT("1100017", "name already exists"),
    GVT_UMS_TENANT_COUNT("1100018", "Please confirm that the login account is a merchant account"),
    GVT_UMS_EMPLOYEE_NOTNULL("1100019", "Submitted employee information is empty"),
    GVT_UMS_USER_NOTNULL("1100020", "The pspUserInfo already exists under the merchant"),
    GVT_UMS_ORGAN_ID_NOTRIGHT("1100021", "Organization ID nesting"),
    GVT_UMS_NAME_OR_CODE_IS_EXIST("1100022", "The same name or code already exists in the current business"),
    GVT_UMS_NAME_NOTNULL("1100023", "User name can not be empty"),
    GVT_UMS_EMPLOYEE_NOT_EXIST("1100024", "Employee information does not exist"),
    GVT_UMS_DATA_ERROR("1100025", "Data format error cannot be resolved"),
    GVT_UMS_ORGAN_PARENT_STATUS_ERROR("1100026", "Parent node status is not available"),
    GVT_UMS_ORGAN_STATUS_ERROR("1100027", "Node status is not available"),
    GVT_UMS_CHILD_ORGAN_ENABLE("1100028", "There are child nodes available"),
    GVT_UMS_UPDATE_ERROR("1100029", "Data modification failed"),
    GVT_UMS_EMPTY("1100030", "pspUserInfo is empty"),
    TOKEN_FAIL_CREAT("1100031", "Creat token fail"),
    TOKEN_FAIL_PARSER("1100032", "parser token fail"),
    RESET_LINK_EXPIRE("1100033", "Reset link expire"),
    PASSWORD_UNLIKE("1100034", "password are different with confirmPassword "),
    USERNAME_EMAIL_BAD("1100035", "邮箱与账号未匹配，请联系工作人员"),
    USERNAME_EXSIT("1100036", "userName exist"),
    EMAIL_EXSIT("1100037", "email exist"),
    PHONE_EXSIT("1100038", "phone  exist"),
    FILE_UPLOAD_FAIL("1100039", "file upload fail"),
    ROLE_LIST_NOT_EMPTY("1100040", "role list not empty"),
	;

    private String code;
    private String value;

    UserErrCodeEnum(String code, String value) {
        this.code = code;
        this.value = value;
    }

    public String getCode() {
        return this.code;
    }

    public String getValue() {
        return this.value;
    }
}
